package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_user_tag"
    ,catalog="zutuan_prot"
)
public class JujuUserTag  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuUserTag";
	public static final String TABLE_NAME="juju_user_tag";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_tagid = "tagid"; 
	public static final String P_userid = "userid"; 

     private String id;
     private String tagid;
     private String userid;

    public JujuUserTag() {
    }
	
    public JujuUserTag(String id) {
        this.id = id;
    }
    public JujuUserTag(String id, String tagid, String userid) {
        this.id = id;
        this.tagid = tagid;
        this.userid = userid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="tagid", length=36)
    public String getTagid() {
        return this.tagid;
    }
    
    public void setTagid(String tagid) {
        this.tagid = tagid;
    }
    
    @Column(name="userid", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


